package com.example.streamconsumerserver1090;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.messaging.SubscribableChannel;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 温伟雄
 * @Date: 2021/10/13/15:42
 * @Description:
 */
public interface StreamClient {
    //对应配置中的bindings
    String INPUT = "input";

    //用来输入消息
    @Input(StreamClient.INPUT)
    SubscribableChannel input();
}
